package com.wench.design.pattern.strategy;

/**
 * @author wench
 */
public class StrategyClient {

    public static void main(String[] args) {
        SaleMan saleMan = new SaleMan(new StrategyA());
        saleMan.saleManShow();

        System.out.println("========================");
        saleMan.setStrategy(new StrategyB());
        saleMan.saleManShow();

        System.out.println("========================");
        saleMan.setStrategy(new StrategyC());
        saleMan.saleManShow();
    }
}
